package com.deram.ctin.serv.business.api;

import com.deram.ctin.common.bean.PageResult;
import com.deram.ctin.serv.business.entity.BaseUpdateInfo;
import com.deram.ctin.serv.business.entity.BusinessEnforcement;
import com.deram.ctin.serv.business.entity.BusinessJudgement;
import com.deram.ctin.serv.business.filter.BusinessEnforcementFilter;
import com.deram.ctin.serv.business.filter.BusinessJudgementFilter;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Author: jtt
 * @Description:
 * @Date: 2017/9/13 15:42
 * @version: V1.0
 */
@FeignClient("serv-business")
@RequestMapping("/businessEnforcementApi")
public interface BusinessEnforcementApi {

    @PostMapping("/list")
    List<BusinessEnforcement> list(@RequestBody BusinessEnforcementFilter filter);

    @PostMapping("/save")
    BusinessEnforcement save(@RequestBody BusinessEnforcement param);

    @PostMapping("/search")
    PageResult<BusinessEnforcement> search(@RequestBody BusinessEnforcementFilter filter, @RequestParam("pageNo") Integer pageNo, @RequestParam("pageSize") Integer pageSize);

    @PostMapping("/delete")
    void delete(@RequestParam("id") Long id);

    @PostMapping("/saveList")
    void saveList(@RequestBody BaseUpdateInfo<BusinessEnforcement> updateInfo);
}
